package com.cipe.cmrs.model;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * <p>
 * Pojo mapping TABLE dbo.State
 * </p>
 * 
 * <p>
 * Generated at Sat Dec 03 14:39:41 PKT 2011
 * </p>
 * 
 * @author Incepio
 * 
 */
@Entity
@Table(name = "stateprovince")
@SuppressWarnings("serial")
public class State extends BaseAuditEntity {

    @ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "countryid")
	private Country	country;
	/**
	 * Attribute stateName.
	 */
	@Basic
	@Column(name = "stateprovincecode", length = 100)
	private String	displayName;
	
	private String stateprovincedesc;

	public Country getCountry() {
		return country;
	}

	public void setCountry(Country country) {
		this.country = country;
	}

	/**
	 * @return the displayName
	 */
	public String getDisplayName() {
		return displayName;
	}

	/**
	 * @param displayName the displayName to set
	 */
	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public String getStateprovincedesc() {
		return stateprovincedesc;
	}

	public void setStateprovincedesc(String stateprovincedesc) {
		this.stateprovincedesc = stateprovincedesc;
	}
}